package com.ww7h.bigobj

import android.content.Context
import android.view.ViewGroup
import android.view.ViewParent
import androidx.databinding.ViewDataBinding
import com.ww7h.ui.base.ui.adapter.RecyclerViewHolder
import com.ww7h.ui.base.ui.adapter.ViewHolderFactory
import com.ww7h.ui.base.ui.adapter.item.ItemRecyclerView
import com.ww7h.ui.base.ui.adapter.model.RecyclerViewModel

/**
 * ================================================
 * 描述：
 * 来源：     Android Studio.
 * 项目名：   BigObj
 * 包名：     com.ww7h.bigobj
 * 创建时间：  2020/11/6 02:22
 * @author   ww
 * ================================================
 */
class DemoViewHolderFactory: ViewHolderFactory<DemoModel>() {

    companion object {
        const val TYPE_HEAD = 0x1001
        const val TYPE_CENTER = 0x1002
        const val TYPE_FOOTER = 0x1003
    }

    override fun createViewHolder(
        context: Context,
        parent: ViewGroup,
        viewType: Int
    ): RecyclerViewHolder<DemoModel, *, *> {
        return DemoItemView(context, parent).viewHolder
    }
}